package com.heima.media.listener;

import com.heima.media.task.MediaTask;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.PostConstruct;

/**
 * @author: itheima
 * @create: 2022-01-18 12:38
 */
@Service
public class AuditListener {

    @Autowired
    private MediaTask mediaTask;

    @PostConstruct //项目启该方法执行
    public void handleMsg(){
        mediaTask.handleMsg();
    }
}
